package com.example.ymm.exception;

import static org.springframework.http.HttpStatus.UNAUTHORIZED;
public class NoPermissionException extends RuntimeException{
    Integer status = UNAUTHORIZED.value();

    public NoPermissionException(String message) {
        super(message);
    }

    public NoPermissionException(Integer status, String message) {
        super(message);
        this.status = status;
    }
}
